package com.itheima.test5;

import java.io.Serializable;

/**
 * @Author:gy
 * @Date: 2025/08/31 14:59
 * @Description:
 */
public class User implements Serializable {
    private String name;
    private transient String passWord;
    private int age;
    //序列化版本号
    private static final long serialVersionUID = 48L;
    public User() {
    }
    public User(String name, String passWord, int age) {
        this.name = name;
        this.passWord = passWord;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", passWord='" + passWord + '\'' +
                ", age=" + age +
                '}';
    }
}
